<template>
	<view>
		<view class="swiperBox">
			<u-swiper :list="swiperList" img-mode="scaleToFill" mode="number" indicator-pos="bottomRight" height="100%"></u-swiper>
		</view>
		<view class="shopInfoBox">
			<view class="inforBox">
				<view class="tipsBox">
					<view class="priceBox">
						<text class="symbol">￥</text>
						<text>500</text>
					</view>
					<view class="payed">
						月销1000+
					</view>
				</view>
				<view class="goods-title u-line-2">
					华为智慧屏 SE 65 畅连通话版 HarmonyOS2 65英寸 4KHDR全面屏液晶电视 1300万AI慧眼
				</view>
				<view class="functionBox">
					<view class="item">
						<image src="@/static/mmx/certification.png" mode=""></image>
						<text>工商认证</text>
					</view>
					<view class="item">
						<u-icon name="man-add" color="#A3A3A3" size="28"></u-icon>
						<text>店主认证</text>
					</view>
					<view class="item">
						<u-icon name="zhuanfa" color="#A3A3A3" size="28"></u-icon>
						<text>分享商品</text>
					</view>
				</view>
			</view>
			<view class="inforBox">
				<view class="chooseBox ">
					<view class="tips">选择</view>
					<view class="content">
						<view class="top">
							<view class="tips">
								颜色分类
							</view>
							<u-icon name="arrow-right" color="#D2D6E2" size="28"></u-icon>
						</view>
						<view class="chooseList">
							<view class="colorList" v-for="(item,index) in colorList" :key="index">
								<image :src="item.img" mode=""></image>
							</view>
							<view class="colorOther">
								共10种颜色分类可选
							</view>
						</view>
					</view>
				</view>
				<view class="chooseBox chooseBoxs">
					<view class="tips">发货</view>
					<view class="content">
						<view class="top">
							<view class="tips">
								<view class="address">
									广东珠海
								</view>
								<view class="delivery">
									快递：包邮
								</view>
							</view>
							<u-icon name="arrow-right" color="#D2D6E2" size="28"></u-icon>
						</view>
						<view class="goAddress">
							
						</view>
					</view>
				</view>
				<view class="chooseBox chooseBoxs">
					<view class="tips">保障</view>
					<view class="content">
						<view class="top">
							<view class="tips">
								7天无理由退换货
							</view>
						</view>
					</view>
				</view>
			</view>
			<view class="inforBox">
				<view class="activTitleBox">
					<view class="title">店铺推荐</view>
				</view>
				<view class="storeRecommend">
					
					<storeRecommend :goods-list="commoditylist"></storeRecommend>
				</view>
			</view>			
		</view>
		<view class="otherBox">
			<view class="title">
				<view class="solid"></view>
				<text>商品详情</text>
				<view class="solid"></view>
			</view>
			<image src="@/static/mmx/activity6.png" mode="widthFix" ></image>
		</view>
		<view class="placeholder">
			
		</view>
		<view class="fixedBox">
			<view class="item">
				<u-icon name="server-man" color="#666666" size="40"></u-icon>
				<text>客服</text>
			</view>
			<view class="item">
				<u-icon name="star" color="#666666" size="40"></u-icon>
				<text>收藏</text>
			</view>
			<view class="item">
				<u-icon name="car" color="#666666" size="40"></u-icon>
				<text>购物车</text>
			</view>
			<view class="joinBox">
				<view class="car">我要参加</view>	
				<view class="buy">我要参加</view>	
			</view>
		</view>
	</view>
</template>

<script>
	import storeRecommend from "@/pages/goods/storeRecommend"; //店铺推荐
	export default {
		components: {
			storeRecommend:storeRecommend
		},
		data() {
			return {
				swiperList: [
					{
						image: require("@/static/mmx/activity3.png"),
						title: '昨夜星辰昨夜风，画楼西畔桂堂东'
					},
					{
						image: require("@/static/mmx/activity3.png"),
						title: '身无彩凤双飞翼，心有灵犀一点通'
					},
					{
						image: require("@/static/mmx/activity3.png"),
						title: '谁念西风独自凉，萧萧黄叶闭疏窗，沉思往事立残阳'
					}
				],
				colorList:[
					{img:require("@/static/mmx/activity4.png")},
					{img:require("@/static/mmx/activity4.png")},
					{img:require("@/static/mmx/activity4.png")},
				],
				commoditylist:[
					{img:require("@/static/mmx/activity5.png")},
					{img:require("@/static/mmx/activity5.png")},
					{img:require("@/static/mmx/activity5.png")},
					{img:require("@/static/mmx/activity5.png")},
					{img:require("@/static/mmx/activity5.png")},
					{img:require("@/static/mmx/activity5.png")},
				],
			}
		},
		methods: {
			
		}
	}
</script>

<style lang="scss" scoped>
	.swiperBox{
		width:100%;
		height: 750rpx;
		/deep/ uni-swiper{
			height:750rpx;
		}
	}
.shopInfoBox{
	background-color: #F4F8FB;
	width: 100%;
	box-sizing: border-box;
	padding: 0px 16rpx;
	.inforBox{
		margin-top:20rpx;
		width: 100%;
		background: #FFFFFF;
		border-radius: 16rpx;
		box-sizing: border-box;
		padding: 24rpx 30rpx;
		.tipsBox {
			display: flex;
			justify-content: space-between;
			.priceBox {
				font-size: 52rpx;
				font-family: PingFangSC-Semibold, PingFang SC;
				font-weight: 600;
				color: #FA4F0B;
				line-height: 30rpx;
				.symbol {
					font-size: 20rpx !important;
					line-height: 20rpx;
				}
			}
			.payed{
				font-size: 20rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #A3A3A3;
				line-height: 20rpx;
			}
		}
		.goods-title {
			font-size: 30rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 600;
			color: #333333;
			line-height: 44rpx;
			margin-top:20rpx;
		}
		.functionBox{
			margin-top:40rpx;
			display:flex;
			.item{
				width:100%;
				flex-shirk:1;
				display:flex;
				align-items: center;
				justify-content: center;
				font-size: 24rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #A3A3A3;
				line-height: 24rpx;
				image{
					width:28rpx;
					height:28rpx;
					margin-right:8rpx;
				}
				/deep/ u-icon{
					margin-right:8rpx;
				}
			}
		}
		.chooseBox{
			padding-top:16rpx;
			width: 100%;
			display:flex;
			.tips{
				font-size: 28rpx;
				font-family: PingFangSC-Regular, PingFang SC;
				font-weight: 400;
				color: #A3A3A3;
				line-height: 28rpx;
				margin-right:38rpx;
				flex-shrik:0;
			}
			.content{
				width:560rpx;
				flex-shrik:0;
				.top{
					display:flex;
					align-items: center;
					justify-content: space-between;
					.tips{
						font-size: 28rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #333333;
						line-height: 28rpx;
						display:flex;
						.address{
							padding-right:20rpx;
							border-right:1px solid #F1F2F3;
						}
						.delivery{
							padding-left:20rpx;
						}
					}
				}
				.chooseList{
					margin-top:20rpx;
					display:flex;
					image{
						width: 60rpx;
						height: 60rpx;
						margin-right:12rpx;
						border-radius: 8rpx;
					}
					.colorOther{
						height: 60rpx;
						background: #F1F2F3;
						border-radius: 8rpx;
						padding:0px 24rpx;
						font-size: 24rpx;
						font-family: PingFangSC-Regular, PingFang SC;
						font-weight: 400;
						color: #A3A3A3;
						line-height: 60rpx;
					}
				}
				.goAddress{
					margin-top:20rpx;
					font-size: 24rpx;
					font-family: PingFangSC-Regular, PingFang SC;
					font-weight: 400;
					color: #666666;
					line-height: 24rpx;
				}
				
			}
		}
		.chooseBoxs{
			padding-top:24rpx;
		}
		.chooseBox:last-child{
			padding-bottom:14rpx;
		}
		.activTitleBox{
			width: 100%;
			padding-left: 6rpx;
			box-sizing: border-box;
			display: flex;
			align-items: center;
			justify-content: space-between;
			.title{
				font-size: 32rpx;
				font-family: PingFangSC-Medium, PingFang SC;
				font-weight: 500;
				color: #010103;
			}
		}
		.storeRecommend{
			padding-top:20rpx;
		}
	}		
}
.otherBox{
	padding-top: 30rpx;
	border-radius: 16rpx;
	width: 100%;
	box-sizing: border-box;
	// background: #FFFFFF;
	background-color: #F4F8FB;
	.title{
		font-size: 32rpx;
		margin-bottom: 34rpx;
		font-family: PingFangSC-Regular, PingFang SC;
		font-weight: 400;
		color: #666666;
		line-height: 32rpx;
		display: flex;
		width: 100%;
		align-items: center;
		justify-content: center;
	}
	.solid{
		width: 100rpx;
		height: 4rpx;
		background: #F1F2F3;
		margin-right: 20rpx;
		margin-left: 20rpx;
	}
	.solid:nth-child(1){
		margin-right: 18rpx;
	}
	.solid:nth-child(2){
		margin-left: 18rpx;
	}
	image{
		width:100%;
	}
}
.placeholder{
	height: 160rpx;
	width: 100%;
}
.fixedBox{
		position: fixed;
		bottom: 0;
		left: 0;
		width: 100%;
		height: 150rpx;
		background: #FFFFFF;
		padding: 0px 16rpx;
		display: flex;
		justify-content: center;
		align-items: center;
		.item{
			margin-right: 32rpx;
			font-size: 20rpx;
			font-family: PingFangSC-Regular, PingFang SC;
			font-weight: 400;
			color: #666666;
			line-height: 24rpx;
			display: flex;
			flex-direction: column;
			align-items: center;
			text{
				margin-top: 10rpx;
			}
		}
		.joinBox{
			width:440rpx;
			display:flex;
			font-size: 28rpx;
			font-family: PingFangSC-Medium, PingFang SC;
			font-weight: 500;
			color: #FFFFFF;
			line-height: 72rpx;
			text-align: center;
			.car{
				width: 220rpx;
				height: 72rpx;
				background: #FFAD55;
				border-radius: 40rpx 0px 0px 40rpx;
			}
			.buy{
				width: 220rpx;
				height: 72rpx;
				background: #FA6C3E;
				border-radius: 0px 40rpx 40rpx 0px;;
				
			}
		}
		
	}
</style>
